package io.bdmc.modules.bss.service.impl;

import io.bdmc.common.utils.MyPage;
import io.bdmc.modules.bss.entity.DeviceMeasureEvent;
import io.bdmc.modules.bss.mapper.DeviceMeasureEventMapper;
import io.bdmc.modules.bss.model.DeviceMeasureEventParam;
import io.bdmc.modules.bss.service.IDeviceMeasureEventService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author ping
 * @since 2020-06-30
 */
@Service
public class DeviceMeasureEventServiceImpl extends ServiceImpl<DeviceMeasureEventMapper, DeviceMeasureEvent>
        implements IDeviceMeasureEventService {
    @Autowired
    DeviceMeasureEventMapper _devicemeasureeventMapper;

    @Override
    public MyPage<DeviceMeasureEvent> mySelectPage(MyPage<DeviceMeasureEvent> myPage, DeviceMeasureEventParam params) {
        return _devicemeasureeventMapper.mySelectPage(myPage, params);
    }

    @Override
    public int deleteByMeasure() {

        return _devicemeasureeventMapper.deleteByMeasure();
    }
}
